package com.bestcem.xm.user.controller.vo.group.request;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 设置组织负责人
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version v1.0
 * @date 2022/6/23 16:09
 */
@Data
public class UserGroupAdminVO {

    /**
     * 负责人用户id
     */
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "用户id格式不正确")
    @JsonProperty("user_id")
    private String userId;
    /**
     * 组织id
     */
    @NotBlank(message = "组织id不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "组织id格式不正确")
    @JsonProperty("group_id")
    private String groupId;

}
